#ifndef _EVENT_H
#define _EVENT_H

class EventSender;

enum EventType
{
	TimerEvent,
	ChangeEvent,
	UpdateEvent,
	UserEvent
};

class Event
{
public:
	Event(EventSender *sender, EventType type)
		:mSender(sender)
		,mType(type)
	{
	}
	~Event()
	{
	}
	const EventSender *sender()
		const
	{
		return mSender;
	}
	EventType type()
	{
		return mType;
	}
private:
	EventSender *mSender;
	EventType mType;
};

#endif	//_EVENT_H